//#import ".h"
#import "Entity.h"
 #import "WalkMap.h"
#import "WalkScreen.h"
@class SMF_WalkMap1;
@interface Buffer: NSObject
{
	NSMutableDictionary* settings;
	int startX, startY;
	NSMutableArray* entities;
	NSMutableArray* party;
	NSMutableArray* items;
	NSMutableArray* shops;
	NSMutableArray* tiles;
	NSMutableArray *movieFrames;
	
	int gold,currentLayer, currentTile,firstPlayer,currentStage; // selected tile

	UIFont* normaltxt, *italictxt, *smalltxt;
	UIImage *obs, *zone, *flash0,*flash1,*attack0,*attack1;
	NSString* stageName;
}
@property int map_type,gold,startX,startY;

@property (retain,nonatomic)UIFont* normaltxt, *italictxt, *smalltxt;
@property (retain,nonatomic)UIImage *obs, *zone, *flash0,*flash1,*attack0,*attack1;
@property (retain,nonatomic)NSString* stageName;
@property (retain,nonatomic)NSMutableArray* shops,*party,*items,*movieFrames;
@property (retain,nonatomic)NSMutableDictionary* settings;
@property  int currentLayer, currentTile,firstPlayer,currentStage;
-(void) readSettings;
-(void) loadScene:(int)i;
-(void) initScriptFile;
-(void)resetToPartyOnly;
-(void)clearAllEnts;
-(void)addEnt:(Entity*)e;
-(void) placeParty;
-(void) initPartyFile;
-(NSMutableDictionary*) readProperties:(NSString*)file;
-(NSMutableArray*)loadArray:(NSString*)name fromFile:(NSString*)file;
- (void) saveArray:(NSMutableArray *)array as:(NSString*)name toFile:(NSString*)file ;
-(Entity*) genCharStats:(Entity*)e withLevel:(int) level;

@end
